//package com.example.oauth2demo.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.data.redis.connection.RedisConnectionFactory;
//import org.springframework.security.oauth2.provider.token.TokenStore;
//import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore;
//
//import javax.annotation.Resource;
//
//@Configuration
//public class RedisConfig {
//
//    @Bean
//    public TokenStore redisTokenStore(RedisConnectionFactory connectionFactory) {
//        return new RedisTokenStore(connectionFactory);
//    }
//}
